package ch.jhc.db;

import java.sql.SQLException;

import org.apache.commons.dbutils.QueryRunner;

import ch.jhc.bean.Reply;

public class ReplyDao{
	
	public static void add(QueryRunner runner,Reply reply) throws SQLException {
		final String sql = "insert into reply(content,publishDate,userId)"
				+ "values(?,?,?)";
			runner.execute(sql, reply.getContent(),reply.getPublishDate(),reply.getUserId());
	}
	
}

